GATE Exam  >  GATE Questions  >  Consider the following languages.L1= {ap| p i... Start Learning for Free
Consider the following languages. 
L1 = {ap | p is a prime number} 
L2 = {anbmc2m | n >= 0, m >= 0} 
L3 = {anbnc2n | n >= 0} 
L4 = {anbn | n >= 1} 


Q. Which of the following are CORRECT ? 

I. L1 is context free but not regular. 
II. L2 is not context free. 
III. L3 is not context free but recursive 
IV. L4 is deterministic context free 
  • a)
    I, II and IV only
  • b)
    II and III only
  • c)
    I and IV only
  • d)
    III and IV only
Correct answer is option 'D'. Can you explain this answer?
Verified Answer
Consider the following languages.L1= {ap| p is a prime number}L2= {anb...
View all questions of this test
Explore Courses for GATE exam
Consider the following languages.L1= {ap| p is a prime number}L2= {anbmc2m| n >= 0, m >= 0}L3= {anbnc2n| n >= 0}L4= {anbn| n >= 1}Q. Which of the following are CORRECT ?I.L1is context free but not regular.II.L2is not context free.III.L3is not context free but recursiveIV.L4is deterministic context freea)I, II and IV onlyb)II and III onlyc)I and IV onlyd)III and IV onlyCorrect answer is option 'D'. Can you explain this answer?
Question Description
Consider the following languages.L1= {ap| p is a prime number}L2= {anbmc2m| n >= 0, m >= 0}L3= {anbnc2n| n >= 0}L4= {anbn| n >= 1}Q. Which of the following are CORRECT ?I.L1is context free but not regular.II.L2is not context free.III.L3is not context free but recursiveIV.L4is deterministic context freea)I, II and IV onlyb)II and III onlyc)I and IV onlyd)III and IV onlyCorrect answer is option 'D'. Can you explain this answer? for GATE 2024 is part of GATE preparation. The Question and answers have been prepared according to the GATE exam syllabus. Information about Consider the following languages.L1= {ap| p is a prime number}L2= {anbmc2m| n >= 0, m >= 0}L3= {anbnc2n| n >= 0}L4= {anbn| n >= 1}Q. Which of the following are CORRECT ?I.L1is context free but not regular.II.L2is not context free.III.L3is not context free but recursiveIV.L4is deterministic context freea)I, II and IV onlyb)II and III onlyc)I and IV onlyd)III and IV onlyCorrect answer is option 'D'. Can you explain this answer? covers all topics & solutions for GATE 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for Consider the following languages.L1= {ap| p is a prime number}L2= {anbmc2m| n >= 0, m >= 0}L3= {anbnc2n| n >= 0}L4= {anbn| n >= 1}Q. Which of the following are CORRECT ?I.L1is context free but not regular.II.L2is not context free.III.L3is not context free but recursiveIV.L4is deterministic context freea)I, II and IV onlyb)II and III onlyc)I and IV onlyd)III and IV onlyCorrect answer is option 'D'. Can you explain this answer?.
Solutions for Consider the following languages.L1= {ap| p is a prime number}L2= {anbmc2m| n >= 0, m >= 0}L3= {anbnc2n| n >= 0}L4= {anbn| n >= 1}Q. Which of the following are CORRECT ?I.L1is context free but not regular.II.L2is not context free.III.L3is not context free but recursiveIV.L4is deterministic context freea)I, II and IV onlyb)II and III onlyc)I and IV onlyd)III and IV onlyCorrect answer is option 'D'. Can you explain this answer? in English & in Hindi are available as part of our courses for GATE. Download more important topics, notes, lectures and mock test series for GATE Exam by signing up for free.
Here you can find the meaning of Consider the following languages.L1= {ap| p is a prime number}L2= {anbmc2m| n >= 0, m >= 0}L3= {anbnc2n| n >= 0}L4= {anbn| n >= 1}Q. Which of the following are CORRECT ?I.L1is context free but not regular.II.L2is not context free.III.L3is not context free but recursiveIV.L4is deterministic context freea)I, II and IV onlyb)II and III onlyc)I and IV onlyd)III and IV onlyCorrect answer is option 'D'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of Consider the following languages.L1= {ap| p is a prime number}L2= {anbmc2m| n >= 0, m >= 0}L3= {anbnc2n| n >= 0}L4= {anbn| n >= 1}Q. Which of the following are CORRECT ?I.L1is context free but not regular.II.L2is not context free.III.L3is not context free but recursiveIV.L4is deterministic context freea)I, II and IV onlyb)II and III onlyc)I and IV onlyd)III and IV onlyCorrect answer is option 'D'. Can you explain this answer?, a detailed solution for Consider the following languages.L1= {ap| p is a prime number}L2= {anbmc2m| n >= 0, m >= 0}L3= {anbnc2n| n >= 0}L4= {anbn| n >= 1}Q. Which of the following are CORRECT ?I.L1is context free but not regular.II.L2is not context free.III.L3is not context free but recursiveIV.L4is deterministic context freea)I, II and IV onlyb)II and III onlyc)I and IV onlyd)III and IV onlyCorrect answer is option 'D'. Can you explain this answer? has been provided alongside types of Consider the following languages.L1= {ap| p is a prime number}L2= {anbmc2m| n >= 0, m >= 0}L3= {anbnc2n| n >= 0}L4= {anbn| n >= 1}Q. Which of the following are CORRECT ?I.L1is context free but not regular.II.L2is not context free.III.L3is not context free but recursiveIV.L4is deterministic context freea)I, II and IV onlyb)II and III onlyc)I and IV onlyd)III and IV onlyCorrect answer is option 'D'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice Consider the following languages.L1= {ap| p is a prime number}L2= {anbmc2m| n >= 0, m >= 0}L3= {anbnc2n| n >= 0}L4= {anbn| n >= 1}Q. Which of the following are CORRECT ?I.L1is context free but not regular.II.L2is not context free.III.L3is not context free but recursiveIV.L4is deterministic context freea)I, II and IV onlyb)II and III onlyc)I and IV onlyd)III and IV onlyCorrect answer is option 'D'. Can you explain this answer? tests, examples and also practice GATE tests.
Explore Courses for GATE exam
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev